package com.taotao.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.github.pagehelper.PageInfo;
import com.taotao.model.DicType;
import com.taotao.service.DicTypeService;

@RestController
@RequestMapping("/dictype")
public class DicTypeController {
	@Autowired
	private DicTypeService dicTypeService;

	@RequestMapping(value = "/all")
	public PageInfo<DicType> getALL(DicType dicType) {
		List<DicType> dicTypeList = dicTypeService.getAll(dicType);
		return new PageInfo<>(dicTypeList);
	}
}
